Azure App Service with Autoscaling deploy with Terraform
Hey DevOps SRE engineers!! Beginning Learning New concepts in Azure Cloud Prerequisites: Terraform 1.5+, Azure CLI, and an Azure subscription with permission to create these resources. Sign in and select the intended subscription before applying it. Modularization in Terraform Define a dedicated folder 'modules', place a child dir as 'app_service' main.tf in the modules/app_service folder resource "random_string" "suffix" { length = 6 lower = true upper = false numeric = true special = false } locals { resource_suffix = coalesce(var.resource_suffix, random_string.suffix.result) } resource "azurerm_resource_group" "app" { name = var.resource_group_name location = var.location } resource "azurerm_log_analytics_workspace" "app" { name = "law-${var.app_name_prefix}-${local.resource_suffix}" location = azurerm_resource_group.app.location ...